package com.service.healthycode.dto;

import lombok.Data;

import java.util.List;

/**
 * @author: hjl
 * @date: 2022/04/28 9:23
 * @description:
 */
@Data
public class DangerTerminalDto {
    /**
     * 终端mac
     */
    private String terminalMac;
    /**
     * 终端状态
     */
    private Integer status;
    private String statusStr;

    /**
     * 数据来源：danger表:0;touch表:1
     */
    private Integer origin;

    /**
     * 所有记录的id
     */
    private List<String> ids;

    public String getStatusStr() {
        switch (status){
            case 4:
                return "确诊";
            case 3:
                return "密接";
            case 2:
                return "次密接";
            case 1:
                return "低风险";
            default:
                return statusStr;
        }
    }
}
